/*
 * Created: Author: Aléx Carvalho / Date: 4/mai/2015
 * 
 * Changed: $Author: ac280593@gmail.com $ / $Date: 2015-06-11 04:28:43 +0000 (Thu, 11 Jun 2015) $
 */
package com.cpm.entities;

import com.cpm.entities.id.IntegerId;
import com.cpm.entities.types.Family;
import javax.persistence.Entity;
import javax.persistence.Lob;

@Entity
public class Information extends IntegerId implements Identity<Information> {

    @Lob
    private String information;

    public Information() {
    }

    public Information(String information) {
        this.information = information;
    }

    public void setValue(String value) {
        this.information = value;
    }

    public String getValue() {
        return information;
    }

    @Override
    public Information clone() {
        Information other = new Information();
        other.id = id;
        other.information = information;
        
        return other;
    }

    @Override
    public Family getFamily() {
        return Family.INFORMATION;
    }
    
    @Override
    public String toString() {
        return information;
    }
}
